<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<script type="text/javascript" src="../../js/public/init.js"></script>
		<script type="text/javascript" src="../../js/public/IP.js"></script>
		<script type="text/javascript" src="../../js/public/jquery.min.js"></script>
		<script type="text/javascript" src="../../js/public/jquery.easyui.min.js"></script>
		<!-- This is the Javascript file of jqGrid -->
		<script type="text/ecmascript" src="../../js/public/jquery.jqGrid.min.js"></script>
		<!-- This is the localization file of the grid controlling messages, labels, etc.
    	<!-- We support more than 40 localizations -->
		<script type="text/ecmascript" src="../../js/public/grid.locale-en.js"></script>
		<script type="text/ecmascript" src="../../js/public/easyui-lang-zh_CN.js"></script>
		<script type="text/javascript" src="../../js/taskManage/taskmanage.js"></script>
		<script type="text/javascript" src="../../js/taskManage/editTaskmanage.js"></script>
	</head>

	<body>
		<!--<div style="position: absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;">-->
			<div id="fullscreen" class="easyui-layout" fit="true">
				<div data-options="region:'north'" title="任务下发设置" style="height:280px">
					<div class="easyui-panel" fit="true">
						<div class="easyui-layout" style="width:100%;height:100%;" border="false">
							<div data-options="region:'west'" style="width:550px">
								<div class="easyui-layout" fit="true" border="false">
									<div region="west" style="width:280px;padding:0 20px;" data-options="border:0">
										<div class="easyui-layout" fit="true">
											<div region="north" style="height:120px;">
												<div style="width:80%;height:28px;line-height:28px;">
													<sapn>选中探针</sapn>
													<a class="easyui-linkbutton" href="#" style="position:absolute;right:2px;top:0;" data-options="iconCls:'icon-search'" onclick="showDialog()"></a>
												</div>
												<textarea style="width:95%;height:65%" id="probeDetail"></textarea>
											</div>
											<div region="center" border="false">
												<span>执行方式</span>
												<input type="radio" name="execute" style="vertical-align:-2px;" value="1" />
												<label for="muExecute">立即
											</label>
												<input type="radio" name="execute" style="vertical-align:-2px;" checked="true" value="2" />
												<label for="inExecute">间隔
											</label>
												<input type="radio" name="execute" style="vertical-align:-2px;" value="3" />
												<label for="alExecute">永久
											</label>
											</div>
											<div region="south" split="true" style="height:100px;" border="false">
												<form id="exe" method="post">
													<table>

														<tr>
															<td id="s">
																<label>开始时间</label>
																<input class="easyui-datetimebox" name="sDate" id="sDate" data-options="required:true" style="width:75%"></input>
															</td>
														</tr>
														<tr>
															<td id="e">
																<label>结束时间</label>
																<input class="easyui-datetimebox" name="eDate" id="eDate" data-options="required:true" style="width:75%"></input>

															</td>
														</tr>
														<tr>
															<td>
																<label>测试</label>
																<input class="easyui-numberspinner" data-options="increment:1,required:true,min:1" style="width:60px" id="cycleIndex" />次&nbsp;
																<label>间隔</label>
																<input class="easyui-numberspinner" data-options="increment:1,required:true,min:1" style="width:60px;" id="timeInterval" />分

															</td>
														</tr>

													</table>
												</form>
											</div>
										</div>
									</div>
									<div region="center" style="padding-left:20px">
										<input type="hidden" name="taskId" id="taskId" />
										<div style="width:100%;height:30px;line-height: 30px;margin-bottom: 5px;">
											<label>模板类型&nbsp;</label>
											<input id="modelType" style="width:146px" />
										</div>
										<div style="width:100%;height:30px;">
											<input type="checkbox" style="vertical-align: -2px;margin-left:60px" id="zlpg" />
											<label for="zl">质量评估</label>
											<input type="checkbox" style="vertical-align: -2px;" id="qyjg" />
											<label for="jg">启用警告</label>

										</div>

										<form id="warn" method="post">
											<table cellpadding="3">

												<tr>
													<td rowspan="2" style="width:50px">告警<br>成功率</td>
													<td>一般
														<input class="easyui-numberspinner" data-options="increment:1,required:true,min:1" style="width:50px" id="cGeneralLow" />%~
														<input class="easyui-numberspinner" data-options="increment:1,required:true,min:1" style="width:50px" id="cGeneralHigh" />
													</td>
												</tr>
												<tr>
													<td>严重
														<input class="easyui-numberspinner" data-options="increment:1,required:true,min:1" style="width:50px" id="cSevereLow" />%~
														<input class="easyui-numberspinner" data-options="increment:1,required:true,min:1" style="width:50px" id="cSevereHigh" />
													</td>
												</tr>
												<tr>
													<td rowspan="2">告警<br>延时率</td>
													<td>一般
														<input class="easyui-numberspinner" data-options="increment:1,required:true,min:1" style="width:50px" id="yGeneralLow" />%~
														<input class="easyui-numberspinner" data-options="increment:1,required:true,min:1" style="width:50px" id="yGeneralHigh" />
													</td>

												</tr>
												<tr>
													<td>严重
														<input class="easyui-numberspinner" data-options="increment:1,required:true,min:1" style="width:50px" id="ySevereLow" />%~
														<input class="easyui-numberspinner" data-options="increment:1,required:true,min:1" style="width:50px" id="ySevereHigh" />
													</td>
												</tr>
												<tr>
													<td>告警次數</td>
													<td>
														<input class="easyui-numberspinner" data-options="increment:1,required:true,min:1" style="width:80px;" id="wTimes" />
													</td>
												</tr>
											</table>
										</form>

									</div>
								</div>
							</div>
							<div data-options="region:'center'">
								<div class="easyui-layout" fit="true">
									<div region="north" style="padding-left:20px;height:35px;line-height: 35px;">
										<span>参数选择</span>
										<input id="testType" />
										<span>参数组选择</span>
										<input id="paramGroup" />
										<span>关键字</span>
										<input type="search" style="width:100px;border-radius: 5px; border:1px solid #999;" id="pSearch" />
									</div>
									<div region="center">
										<div id="myBox">
											<table id="mGrid"></table>
											<div id="mGridPager"></div>
										</div>
									</div>

								</div>
							</div>
						</div>
					</div>
				</div>
				<div data-options="region:'center'," id="taskContainer">
					<div style="width:420px;position:absolute;top:10px;right:0;z-index: 2000;">
						<span>关键字</span>
						<input id="tSearch" style="width:100px;border-radius: 5px; border:1px solid #999;" />

						<a href="#" class="easyui-linkbutton" onclick="taskSend()" id="taskSend">任务下发</a>
						<!--<a href="#" class="easyui-linkbutton" onclick="taskEdit()" id="taskEdit">任务修改</a>-->
						<a href="#" class="easyui-linkbutton" onclick="taskSuspeed()" id="taskSuspeed">任务挂起</a>
						<a href="#" class="easyui-linkbutton" onclick="taskReturn()" id="taskRetrun">任务恢复</a>
						<a href="#" class="easyui-linkbutton" onclick="taskDelete()" id="taskDelete">任务删除</a>
					</div>
					<div class="easyui-panel" fit="true" id="taskContainer" title="任务列表" style="padding:0 3px;">
						<table id="jqGrid"></table>
						<div id="jqGridPager"></div>
					</div>
				</div>
			</div>
		</div>
		<div id="querypingTab" class="easyui-dialog" title="设备选择" style="width:400px; height:390px;" data-options="collapsible:false, maximizable:false,modal:true,closed:true">
			<div class="easyui-tabs" data-options="tabWidth:121">
				<div title="探针列表">
					<div style="position: absolute;left:10px;top:88px;width:372px;z-index:1000;">

						<input id="SearchCellPingId" type="search" />
						<div style="float: right;">
							<a href="#" class="easyui-linkbutton" data-options="toggle:true" onclick="searchProbe('#pGrid','deviceid','1')">确认选择</a>
						</div>
					</div>
					<div style="z-index: 0;position: absolute;left:20px;top:110px; margin-top: 6px; bottom:0px;overflow:hidden;width: 400px;height: 350px;">
						<table id="pGrid"></table>
					</div>
				</div>
				<div title="地区列表">
					<div style="position: absolute;left:10px;top:88px;width:372px;z-index:1000;">

						<input id="SearchCellPingArea" type="search" />
						<div style="float: right;">
							<a href="#" class="easyui-linkbutton" data-options="toggle:true" onclick="searchProbe('#aGrid','text','2')">确认选择</a>
						</div>
					</div>
					<div style="z-index: 0;position: absolute;left:20px;top:110px; margin-top: 6px; bottom:0px;overflow:hidden;width: 400px;height: 350px;">
						<table id="aGrid"></table>
					</div>
				</div>
				<div title="自定义组">
					<div style="position: absolute;left:10px;top:88px;width:372px;z-index:1000;">
						<input id="SearchCellPingDefine" type="search" />
						<div style="float: right;">
							<a href="#" class="easyui-linkbutton" data-options="toggle:true" onclick="searchProbe('#dGrid','probeGroup','3')">确认选择</a>
						</div>
					</div>
					<div style="z-index: 0;position: absolute;left:20px;top:110px; bottom:0px;margin-top: 6px;overflow:hidden;width: 400px;height: 350px;">
						<table id="dGrid"></table>
					</div>
				</div>
			</div>
		<!--</div>-->
	</body>

</html>